#include "workthread.h"
#include "ui_workthread.h"

workThread::workThread(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::workThread)
{
    ui->setupUi(this);
    QThread* subThread =  new QThread;
    workThread* work = new workThread;

    work->moveToThread(subThread);
//    subThread->start();
  //  connect(ui->pushButton,&QPushButton::clicked,work,&workThread::run());
}

workThread::~workThread()
{
    delete ui;
}


void workThread::run()
{

    qDebug()<<"1111111111111s";



}

void workThread::on_pushButton_released()
{
    this->run();
}
